package com.fs.cv.pojo.pojodao;

import java.io.Serializable;
import java.util.Set;

/**
 * @工程名: SSM教务管理系统项目
 * @描述：
 * @作者: 小梁子
 * @创建时间: 2020-09-28 00:39
 **/
public class User implements Serializable {
    private int userId;//用户ID
    private String userUserName;//用户名
    private String userPassword;//密码
    private String userNickName;//用户昵称
    private int userDeleted;//删除状态
    private String roleName;//角色名
    private Set<Role> roles;

    public User(int userId, String userUserName, String userPassword, String userNickName, int userDeleted, String roleName, Set<Role> roles) {
        this.userId = userId;
        this.userUserName = userUserName;
        this.userPassword = userPassword;
        this.userNickName = userNickName;
        this.userDeleted = userDeleted;
        this.roleName = roleName;
        this.roles = roles;
    }

    public String getRoleName() {
        return roleName;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userUserName='" + userUserName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userNickName='" + userNickName + '\'' +
                ", userDeleted=" + userDeleted +
                ", roleName='" + roleName + '\'' +
                ", roles=" + roles +
                '}';
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Set<Role> getRoles() {
        return roles;
    }

    public void setRoles(Set<Role> roles) {
        this.roles = roles;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserUserName() {
        return userUserName;
    }

    public void setUserUserName(String userUserName) {
        this.userUserName = userUserName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserNickName() {
        return userNickName;
    }

    public void setUserNickName(String userNickName) {
        this.userNickName = userNickName;
    }

    public int getUserDeleted() {
        return userDeleted;
    }

    public void setUserDeleted(int userDeleted) {
        this.userDeleted = userDeleted;
    }


    public User() {
    }
}
